<?php
//开启会话
session_start();
?>
<?php
include_once 'admin/connect.php';

$sql = "select * from text where adminName = 'admin' ";
$result = mysqli_query($connect, $sql);
if (mysqli_num_rows($result)) {
    $text = mysqli_fetch_array($result);
} else {
    header("Location:admin/login.php");
    die("暂无权限");
}

?>

<!--
 * @Author: Ki.
 * @Date: 2022-11-15 07:35:43
 * @LastEditors: Ki.
 * @LastEditTime: 2022-11-15 07:51:06
 * @Description: 花有重开日 人无再少年
 * Copyright (c) 2022 by Ki All Rights Reserved. 
-->

<!-- Like Girl v2.0.0 -->
<!-- Copyright (c) 2022 Ki. -->
<!-- Date：2022-09-10 -->
<!-- 开发不易 版权信息请保留-->

<script>
    console.log("%c Like Girl v2.0.0 | Powered by Ki","color:#fff;background:linear-gradient(270deg,#986fee,#8695e6,#68b7dd,#18d7d3);padding:8px 15px;border-radius:15px");
    console.log("%c Q | 3439780232","color:#fff;background:#000;padding:8px 15px;border-radius:15px");
</script>
    <link rel="shortcut icon" href="/favicon.ico" />
    <!-- 定义视窗 -->
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <!-- 引入思源宋体 -->
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@700&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="css/index.css">
        <link href="/css/loading.css" rel="stylesheet">



<div id="Loadanimation" style="z-index:999999;">
    <div id="Loadanimation-center">
        <div id="Loadanimation-center-absolute">
            <div class="xccx_object" id="xccx_four"></div>
            <div class="xccx_object" id="xccx_three"></div>
            <div class="xccx_object" id="xccx_two"></div>
            <div class="xccx_object" id="xccx_one"></div>
        </div>
    </div>
</div>
<script src="https://code.jquery.com/jquery-1.7.2.min.js"></script>
<script>
    $(function(){
        $("#Loadanimation").fadeOut(1000);
    });
</script>

<!-- 头部导航条 -->
<div class="header-wrap">
    <div class="header">
        <div class="logo">
            <h1><a href="index.php"><?php echo $text['logo']?></a></h1>
        </div>
        <div class="word">
            <span><?php echo $text['writing']?></span>
        </div>
    </div>
</div>
<!-- 头像内容 -->
<div class="bg-wrap">
    <div class="bg-img">
        <div class="central central-800">
            <div class="middle">
                <div class="img-male">
                    <img src="https://q1.qlogo.cn/g?b=qq&nk=<?php echo $text['boyimg']?>&s=640" alt="">
                    <span><?php echo $text['boy']?></span>
                </div>
                <div class="love-icon">
                    <img src="img/like.svg" alt="">
                </div>
                <div class="img-female">
                    <img src="https://q1.qlogo.cn/g?b=qq&nk=<?php echo $text['girlimg']?>&s=640" alt="">
                    <span><?php echo $text['girl']?></span>
                </div>
            </div>
        </div>
        <svg class="waves" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
             viewBox="0 24 150 28" preserveAspectRatio="none" shape-rendering="auto">
            <defs>
                <path id="gentle-wave"
                      d="M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z" />
            </defs>
            <g class="parallax">
                <use xlink:href="#gentle-wave" x="48" y="0" fill="rgba(255,255,255,0.7" />
                <use xlink:href="#gentle-wave" x="48" y="3" fill="rgba(255,255,255,0.5)" />
                <use xlink:href="#gentle-wave" x="48" y="5" fill="rgba(255,255,255,0.3)" />
                <use xlink:href="#gentle-wave" x="48" y="7" fill="#fff" />
            </g>
        </svg>
    </div>
</div>
<style>
    .bg-img{
        background: url(<?php echo $text['bgimg']?>) no-repeat center!important;
        background-size: cover!important;
    }
</style>